package com.cn.wanxi.thread;

public class MyRunnable implements Runnable {
    private int a = 100;

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            if (a > 0) {
                System.out.println(Thread.currentThread().getName() + "线程开启：执行第 " + --a + " 次");
            } else {
                return;
            }

        }
    }
}